﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MShop.Web.Components.ModelBinders
{
    [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class ProductDataBindAttribute : BindUsingAttribute
    {
      public ProductDataBindAttribute()
                : base(typeof(ProductBinder))
            {

            }

      protected ProductDataBindAttribute(Type binderType)
                : base(binderType)
            {
                Fetch = true;
            } 

    }
}
